package com.yb.flowable.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.UUID;

/**
 * Description:请假任务信息封装类
 *
 * @author biaoyang
 * date 2019/3/14 001411:32
 */
@Setter
@Getter
@ApiModel(description = "请假任务信息封装类")
public class VacationTask {

    @ApiModelProperty("任务id")
    private String taskId;

    @ApiModelProperty("审批人")
    @NotBlank(message = "审批人不能为空")
    private String auditor;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("请假信息")
    private Vacation vacation;

    @ApiModelProperty("创建时间")
    private Date createDate;

    public VacationTask() {
        this.taskId = UUID.randomUUID().toString().replaceAll("-", "");
    }

}
